import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:ff_flutter/screens/home/widgets/tab_bar/widgets/game_card.dart';

class GameGrid extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return GridView.builder(
      padding: EdgeInsets.symmetric(horizontal: 32.w, vertical: 24.h),
      shrinkWrap: true,
      physics: const NeverScrollableScrollPhysics(),
      gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
        crossAxisCount: 2,
        mainAxisSpacing: 24.h,
        crossAxisSpacing: 24.w,
        childAspectRatio: 335 / 428,
      ),
      itemCount: 4,
      itemBuilder: (context, index) {
        return GameCard(
          imageUrl: 'assets/images/big_explore_live_man.png',
          title: 'Mabar ML skuy',
          avatar: 'assets/images/girl.png',
          views: '1.2K',
        );
      },
    );
  }
}
